#include "../include/Camera.hpp"
using namespace klas;

Camera::Camera(const Vector2<Real>& dim)
{
	m_rect = Rectangle<Real>(Vector2<Real>(0, 0), (Vector2<Real>(0, 0) + dim));
}

Rectangle<Real> Camera::translate(const Vector2<Real>& qty)
{
	m_rect.x = (m_rect.x + qty.x);
	m_rect.y = (m_rect.y + qty.y);
	return m_rect;
}

void Camera::setRect(const Rectangle<Real>& rect)
{
	m_rect = rect;
}

Rectangle<Real> Camera::getRect() const
{
	return m_rect;
}
